#include <remez_log.h>
#include <iostream>

using namespace mpfr;

extern void my_invsqrt_coeffs_v1(bool debug);
extern void my_invsqrt_coeffs_v2(bool debug);
extern void my_invsqrt_coeffs_v3(bool debug);

int main(int argc, char* argv[])
{
    if (argc <2 )
    {
        std::cout << argv[0] << " 1\nor\n"
            << argv[0] << " 2\n"          
            << argv[0] << " 3\n";
        return 1;
    }

    // 检查命令行参数，
    int mode= atoi( argv[1]);

    if (mode==1)
    {
        my_invsqrt_coeffs_v1(true);
        return 0;
    }
    else if (mode==2)
    {
        my_invsqrt_coeffs_v2(true);
        return 0;
    }
    else if (mode==3)
    {
        my_invsqrt_coeffs_v3(true);
        return 0;
    }
    else
    {
        std::cout << "Error: mode=" << mode << " is not supported\n";
        return 1;
    }
}
